home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c
- Path: phcoms4.seri.philips.nl!panther!baynes
- From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
- Subject: Re: CLOCKS_PER_SEC not defined
- Sender: news@ukpsshp1.serigate.philips.nl (account for localnews)
- Message-ID: <DMv2A4.Br6@ukpsshp1.serigate.philips.nl>
- Date: Fri, 16 Feb 1996 08:58:52 GMT
- References: <ramin.1174728902A@news.gsfc.nasa.gov>
- Organization: Philips Semiconductors, Southampton, UK
- X-Newsreader: TIN [version 1.2 PL2]
-
- Ramin Sina (ramin@twinkie.gsfc.nasa.gov) wrote:
- : Hello everyone,
-
- : I am using a supposedly ansi c program in which I write
-
- : #include <time.h>
-
- : #if defined(__STDC__) && !defined(CLOCKS_PER_SEC)
- : #error "CLOCKS_PER_SEC is not defined on this stupid compiler"
- : #endif
-
- : I get the error that CLOCKS_PER_SEC is not defined. I had thought that it
- : was defined in standard C in the time.h header. I need CLOCKS_PER_SEC to
- : time how long it takes for the program to run. Can anybody suggest how I can
- : fix this problem.
-
- It should be - you will have to take it up with your compiler vendor.
-
- --
- Stephen Baynes baynes@mulsoc2.serigate.philips.nl
- Philips Semiconductors Ltd
- Southampton My views are my own.
- United Kingdom
-